<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()
            + "://" + request.getServerName()
            + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <base href="<%=basePath%>">
    <title>测试文件上传</title>
</head>
<body>
<h1>上传商品图片</h1>
<form action="servlet/doUpload1" method="post" enctype="multipart/form-data">
    <p>商品名称：<input type="text" name="productName"></p>
    <p>商品图片：<input type="file" name="productFile"></p>
    <p><input type="submit"></p>
</form>
</body>
</html>
